package org.exez.modules.system.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @Author scott
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "用户修改对象")
public class SysUserUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id", width = 15)
    @ApiModelProperty(value = "id",required = true)
    @NotBlank(message = "id不能为空")
    private String id;

//    /**
//     * 登录账号
//     */
//    @ApiModelProperty(value = "登录账号")
//    private String username;


    /**
     * 密码
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private String workNo;
    
    /**
     * 事业单位id
     */
    @ApiModelProperty(value = "事业单位id")
    private Integer institutionId;
    
    /**
     * 功能权限
     */
    @ApiModelProperty(value = "1:admin 2：二级用户 3：三级用户")
    private String authority;

    /**
     * 事业单位名称
     */
    @ApiModelProperty(value = "事业单位名称")
    private String institutionName;

    /**
     * 事业单位名称
     */
    @ApiModelProperty(value = "是否管理员")
    private Integer isManage;
}
